extends ../layout/layout.pug

block head
  - var title = "Download - "
    include ../layout/head-en.pug

block content
    div(style="position: relative;overflow: hidden;")
        img(class="home__bg" src="https://b3log.org/siyuan/static/home.svg")
        img(style="position: absolute" src="https://b3log.org/siyuan/static/img-bg4.svg")
        - var headerClass = "header header--black"
        include ../layout/header-en.pug
        div(class="feature__hr")
        div(class="feature__hr")
        div(class="wrapper" style="max-width: 620px;position: relative;z-index: 1;")
            div(style="text-align: center")
                h2(class="feature__title feature__black") Download
            div(class="feature__hr")
            div(class="download__address" id="download")
                a(style="display: none" target="_blank" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-mac.dmg" class="home__download" data-os="macOS") Intel chip
                    span (Upgrade requires re-download)
                a(style="display: none" target="_blank" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-mac-arm64.dmg" class="home__download" data-os="macOS") Apple silicon
                    span (Upgrade requires re-download)
                a(target="_blank" href="https://www.microsoft.com/store/apps/9P7HPMXP73K4" class="home__download" data-os="Windows") Microsoft Store
                    span In-store upgrade
                a(target="_blank" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-win.exe" class="home__download" data-os="Windows") 64-bit Installer
                    span Download upgrade
                a(style="display: none" target="_blank" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12.apk" class="home__download" data-os="Android") Android
                    span (Upgrade requires re-download)
                a(style="display: none" target="_blank" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-linux.AppImage" class="home__download" data-os="Linux") Linux AppImage
                    span (Upgrade requires re-download)
        div(class="feature__hr")
        div(class="download wrapper")
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-windows.png")
                h3 Windows
                a(class="download__link" href="https://www.microsoft.com/store/apps/9P7HPMXP73K4" target="_blank") Microsoft Store
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-win.exe" target="_blank") 64-bit Installer
                a(class="download__link" href="https://github.com/siyuan-note/siyuan" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-macOS.png")
                h3 macOS
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-mac.dmg" target="_blank") Intel
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-mac-arm64.dmg" target="_blank") Apple
                a(class="download__link" href="https://github.com/siyuan-note/siyuan" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-linux.png")
                h3 Linux
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-linux.AppImage" target="_blank") AppImage
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12-linux.tar.gz" target="_blank") tar.gz
                a(class="download__link" href="https://github.com/siyuan-note/siyuan" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-android.png")
                h3 Android
                a(class="download__link" href="https://play.google.com/store/apps/details?id=org.b3log.siyuan" target="_blank") Google Play
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases/download/v3.0.12/siyuan-3.0.12.apk" target="_blank") APK
                a(class="download__link" href="https://github.com/siyuan-note/siyuan-android" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-ios.png")
                h3 iPhone/iPad
                a(class="download__link" href="https://apps.apple.com/cn/app/siyuan/id1583226508" target="_blank" rel="nofollow") App Store
                a(class="download__link" href="https://testflight.apple.com/join/BBLHMJ4g" target="_blank" rel="nofollow") TestFlight
                a(class="download__link" href="https://github.com/siyuan-note/siyuan-ios" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-chromium.png")
                h3 Browser extension
                a(class="download__link" href="https://chrome.google.com/webstore/detail/siyuan/hkcgjbeblifaincobbcfiffbpgoafepk" target="_blank") Chrome
                a(class="download__link" href="https://microsoftedge.microsoft.com/addons/detail/siyuan/lclhdlhleinlppggbbgimbekofanbkcf" target="_blank") Edge
                a(class="download__link" href="https://github.com/siyuan-note/siyuan-chrome" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo-docker.png")
                h3 Server
                | Non-programmers don't try
                a(class="download__link" href="https://hub.docker.com/r/b3log/siyuan" target="_blank" rel="nofollow") Docker image
                a(class="download__link" href="https://github.com/siyuan-note/siyuan" target="_blank") Source
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo_.png")
                h3 Insider
                | Alpha-version will be released before major changes
                a(class="download__link" href="https://github.com/siyuan-note/insider" target="_blank" rel="nofollow") Visit the insider repository
            div(class="item")
                img(src="https://b3log.org/siyuan/static/logo.svg")
                h3 History
                a(class="download__link" href="https://github.com/siyuan-note/siyuan/releases" target="_blank" rel="nofollow") Download historical releases
        div(class="feature__hr")
        div(class="feature wrapper faq")
            div(class="faq__inner")
                h2(class="feature__title feature__title--1") FAQ
                div(class="item")
                    h3 How does SiYuan store data?
                    p The data is saved in the workspace folder, in the workspace data folder:
                    ul
                        li
                            code assets
                            |  is used to save all inserted assets
                        li
                            code emojis
                            |  is used to save emoji images
                        li
                            code snippets
                            |  is used to save code snippets
                        li
                            code storage
                            |  is used to save named criteria and flashcards, etc.
                        li
                            code templates
                            |  is used to save template snippets
                        li
                            code widgets
                            |  is used to save widgets
                        li
                            code plugins
                            |  is used to save plugins
                        li
                            code public
                            |  is used to save public data
                        li The rest of the folders are the notebook folders created by the user, files with the suffix of <code>.sy</code> in the notebook folder are used to save the document data, and the data format is JSON
                div(class="item")
                    h3 Is SiYuan open source?
                    p SiYuan is completely open source, and contributions are welcome:
                    ul
                        li
                            a(href="https://github.com/siyuan-note/siyuan" target="_blank" class="download__link") User Interface and Kernel
                        li
                            a(href="https://github.com/siyuan-note/siyuan-android" class="download__link" target="_blank") Android App
                        li
                            a(href="https://github.com/siyuan-note/siyuan-ios" class="download__link" target="_blank") iOS App
                        li
                            a(href="https://github.com/siyuan-note/siyuan-chrome" class="download__link" target="_blank") Chrome Clipping Extension
                div(class="item")
                    h3 Do I need to pay to use it?
                    p Most features are free, even for commercial use.
                      br
                      | Some features are only available to paid members, for more details please refer to&nbsp;
                      a(href="pricing.html" class="feature__a feature__a--white" style="margin-top: 0")
                        span pricing
                            svg(height="16" viewBox="0 0 16 16" width="16" fill="#fff")
                                path(clip-rule="evenodd" d="m8.21967 2.96967c.29289-.29289.76777-.29289 1.06066 0l4.24997 4.25c.2929.29289.2929.76777 0 1.06066l-4.24997 4.24997c-.29289.2929-.76777.2929-1.06066 0s-.29289-.7677 0-1.0606l2.96963-2.9697h-7.4393c-.41421 0-.75-.33579-.75-.75s.33579-.75.75-.75h7.4393l-2.96963-2.96967c-.29289-.29289-.29289-.76777 0-1.06066z" fill-rule="evenodd")
        include ../layout/footer-en.pug
